<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css">
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/shoppingcart/shoppincart.css">
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/shoppingcart/place_order.css"/>
		<script src="./Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/JS.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		{{include file="../Common/headers"}}
		
		<!--完成订单-->
		<div id="toporder">
			<a href="index.php">
				<img src="./Public/Home/images/shopping/5.jpg" alt="">
			</a>
			<div class="shopcar_nav" style="background: url(./Public/Home/images/shopping/6.png) no-repeat 175px -90px;">
				<h1 class="title">完成订单</h1>
			</div>
			<div class="fanhui"><a href="{{U('Cart/index')}}">返回修改购物车</a></div>
		</div>
		<div id="place_box">
			<div class="place_f1">
				<div class="place_order">
					<i></i><span>感谢您提交订单，我们将及时为您处理！</span>
				</div>
				<div class="place_pink">
					<div class="place_reminder">
						<b>温馨提示：</b><span class="processing">由于系统需要进行订单处理，您可能不会立刻查询到刚提交的订单，请您谅解。</span>
					</div>
				</div>
			</div>
			<form action="{{U('Cart/payment')}}" method="post">
				<div class="place_f2">
					<div class="package">
						<div class="processing_f1">
							<span class="processing_t1">订单号：</span>
							<span class="processing_num">{{$orderId}}</span>
							<input type="hidden" name="orderId" id="orderId" value="{{$orderId}}" />
						</div>
						<dl class="package_f1">
							<dt class="package_b1">包裹：</dt>
							<dd class="package_num">{{$num}}件商品</dd>
							<input type="hidden" name="num" id="num" value="{{$num}}" />
							<dd>送给</dd>
							<dd>配送方为</dd>
							{{foreach from="$keyData" value='$v'}}
								<dd>{{$v}}</dd>
								<input type="hidden" name="dispatching[]" value="{{$v}}" />
							{{endforeach}}
							<dd>预计送达日期为：</dd>
							<dd>{{date('Y-m-d',strtotime("+7 day"))}}</dd>
						</dl>	
					</div>
					<div class="package_price">
						<span class="payment">支付金额：</span>
						<span class="price_red">¥{{$count['countMoney']}}</span>
						<input type="hidden" name="price" id="price" value="{{$count['countMoney']}}" />
						<a href="{{U('Cart/payment',array('orderId'=>$orderId))}}" style="color: #00A2E8;"><span class="seconds">3</span>秒钟后自动跳到支付页面</a>
						
					</div>
					
				</div>
				<div style="float: right;">
						<a href="{{U('Cart/payment',array('orderId'=>$orderId))}}" style="border:none;width: 120px;height:40px;background:#E01D20;color: #fff;display: block;text-align: center;line-height: 40px;font-size: 14px;">前去支付</a>
						
				</div>
			</form>
		</div>
		{{include file="../Common/footers"}}
	</body>
	<script type="text/javascript">
		$(function(){
			setTimeout(function(){
			location.href="{{U('Cart/payment',array('orderId'=>$orderId))}}"
			},3000);
		})
	</script>
</html>
